package com.zlt.dao;

import com.zlt.dto.VipLogDTO;
import com.zlt.entity.*;

import java.util.List;

public interface VipDao {
    List<Vip> selectVipAllType();

    UserVip selectUserVip(String uid, int state);

    int updateVipExpired(String uid, int state);

    int insertChargeLog(VipLog vipLog);

    Vip selectVipType(Integer vid);

    int delayVip(UserVip userVip);

    int createUserVip(UserVip userVip);


    List<UserVip> selectAllUserVip(int state);

    Company selectVipCompany(String uid);

    List<Job> selectVipJobs(Integer cid, int state);

    List<Company> selectAllCompanys(int state);

    List<Job> selectRecentJobs(int limit);

    JobType selectJobType(Integer jtid);

    Company selectCompany(Integer cid);

    List<VipLog> selectVipLogs(String uid);

    int insertChargeRecord(VipLogDTO vipLogDTO);
}
